package tgc.edu.ljc.layui.repository;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Repository;

import tgc.edu.ljc.layui.custom.CommonRepository;
import tgc.edu.ljc.layui.entity.Stu;

@Repository
public interface StudentRepository extends CommonRepository<Stu, Integer>{

	public List<Stu> findByTbClassId(Integer classId);

	public Page<Stu> findByTbClassId(int classId, Pageable pageable);

}
